package com.talos.ums.controller.admin.organization.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 组织表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UmsOrganizationRespVO {

    @Schema(description = "自增id", requiredMode = Schema.RequiredMode.REQUIRED, example = "22091")
    @ExcelProperty("自增id")
    private Long id;

    @Schema(description = "组织编码")
    @ExcelProperty("组织编码")
    private String code;

    @Schema(description = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("组织名称")
    private String name;

    @Schema(description = "父级组织id", requiredMode = Schema.RequiredMode.REQUIRED, example = "18935")
    @ExcelProperty("父级组织id")
    private Long parentId;

    @Schema(description = "父级组织编码")
    @ExcelProperty("父级组织编码")
    private String parentCode;

    @Schema(description = "组织层级")
    @ExcelProperty("组织层级")
    private Integer level;

    @Schema(description = "同组内的组织顺序，从1开始累加，一级组织为0")
    @ExcelProperty("同组内的组织顺序，从1开始累加，一级组织为0")
    private Integer sort;

    @Schema(description = "状态（0:停用 1:启用）", example = "1")
    @ExcelProperty("状态（0:停用 1:启用）")
    private Integer status;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人工号")
    @ExcelProperty("创建人工号")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "王五")
    @ExcelProperty("创建人姓名")
    private String creatorName;

    @Schema(description = "修改时间")
    @ExcelProperty("修改时间")
    private LocalDateTime modifyTime;

    @Schema(description = "修改人工号")
    @ExcelProperty("修改人工号")
    private String modifierCode;

    @Schema(description = "修改人姓名", example = "赵六")
    @ExcelProperty("修改人姓名")
    private String modifierName;

    @Schema(description = "是否结算组织，默认为是")
    @ExcelProperty("是否结算组织，默认为是")
    private Integer isSettlementOrg;

    @Schema(description = "删除标识，1：正常，2：删除")
    @ExcelProperty("删除标识，1：正常，2：删除")
    private Integer deleted;

    @Schema(description = "机构编码集合，（新增的自定义字段）")
    @ExcelProperty("机构编码集合，（新增的自定义字段）")
    private String organizationCodeTree;

    @Schema(description = "机构id集合，（新增的自定义字段）")
    @ExcelProperty("机构id集合，（新增的自定义字段）")
    private String organizationIdTree;

    @Schema(description = "组织类型编码（COMPANY：公司；DEPARTMENT：部门）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("组织类型编码（COMPANY：公司；DEPARTMENT：部门）")
    private String organizationTypeCode;

    @Schema(description = "租户编码")
    @ExcelProperty("租户编码")
    private String tenantCode;

    @Schema(description = "租户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20851")
    @ExcelProperty("租户id")
    private Long tenantId;

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED, example = "18790")
    @ExcelProperty("")
    private Long creatorId;

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED, example = "6513")
    @ExcelProperty("")
    private Long modifierId;

}
